package cn.rkylin.oms.warehouseDocking.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import cn.rkylin.core.IDataBaseFactory;
import cn.rkylin.oms.warehouseDocking.domain.QmWmsSku;

/**
 * QmWmsSku数据访问接口实现
 * 
 * @author jipengcheng
 * @created 2017年10月18日
 */
@Repository(value = "iQmWmsSkuDAO")
public class QmWmsSkuDAOImpl implements IQmWmsSkuDAO {

    @Autowired
    protected IDataBaseFactory dao;

    private static final String InsertSelectiveQmWmsSku = "insertSelectiveQmWmsSku";
    private static final String UpdateByPrimaryKeySelectiveQmWmsSku = "updateByPrimaryKeySelectiveQmWmsSku";

    /**
     * 插入
     */
    @Override
    public int insertSelectiveQmWmsSku(QmWmsSku qmWmsSku) throws Exception {
        int iRtn = dao.insert(InsertSelectiveQmWmsSku, qmWmsSku);
        return iRtn;
    }

    /**
     * 更新
     */
    @Override
    public int updateByPrimaryKeySelectiveQmWmsSku(QmWmsSku qmWmsSku) throws Exception {
        int iRtn = dao.update(UpdateByPrimaryKeySelectiveQmWmsSku, qmWmsSku);
        return iRtn;
    }

}
